package org.odk.collect.android.provider;

import android.content.Context;
import android.view.ActionProvider;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageButton;
import org.odk.collect.android.R;

public class NewFormActionProvider extends ActionProvider {

    Context mContext;
    
    public NewFormActionProvider(Context context) {
        super(context);
        mContext = context;
    }

    @Override
    public View onCreateActionView() {
        // Inflate the action view to be shown on the action bar.
        LayoutInflater layoutInflater = LayoutInflater.from(mContext);
        View view = layoutInflater.inflate(R.layout.lst_item_form, null);
        ImageButton button = (ImageButton) view.findViewById(R.id.img_thumbnail);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // Do something...
            }
        });
        return view;
    }
}
